TGML Expose Element: <Expose>

Expose indicates that an attribute of the immediate parent element is to be exposed by the TGML editor, using the Name of the Expose element instead of the original attribute name.

Attribute Type Description

ExposedAttribute

String

The exposed attribute of the parent element.
Inheritable: No
Animatable: No

Description

String

A user-defined description of the exposed attribute.
Inheritable: No
Animatable: No

Example:

Copy
<Component.. .>
    <Rectangle...>
        <Expose ExposedAttribute="Fill" Name="BackgroundColor"/> 
    </Rectangle>
    <Ellipse...>
        <Bind ...>
            <ConvertRange...>
                <Expose ExposedAttribute="SignalMinValue" Name="Min" Description="The minimum value of the signal"/> 
                <Expose ExposedAttribute="SignalMaxValue" Name="Max" Description="The maximum value of the signal"/> 
            </ConvertRange>
    </Bind>
    </Ellipse>
</Component>